<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use common\helpers\TStringHelper;

/* @var $this yii\web\View */
/* @var $model common\models\SystemSearch */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="system-search">

    <?php $form = ActiveForm::begin([
        'id' => 'searchForm',
        'action' => Yii::$app->urlManager->createUrl(['system/index']),
        'method' => 'get',
    ]); ?>
    <div class="form-inline">
        <?= $form->field($model, 'name') ?>
        <?= $form->field($model, 'code') ?>
        <?= $form->field($model, 'value') ?>
        <?= $form->field($model, 'status')->dropDownList(TStringHelper::getStatusText()) ?>
        <div class="form-group">
            <?= Html::submitButton(Yii::t('common', 'search'), ['class' => 'btn btn-primary']) ?>
            <?= Html::resetButton(Yii::t('common', 'reset'), ['class' => 'btn btn-default', 'id' => 'reset']) ?>
            <div class="help-block"></div>
        </div>
    </div>
    <?php ActiveForm::end(); ?>

</div>
